<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="orgadd" />
<LINK rel="stylesheet" type="text/css" href="<html:rewrite page='/alf.css'/>">
<script type="text/javascript" src="<html:rewrite page='/javascript/textCounter.js'/>"></script>
<script language="javascript">
    function after_pers_sel() {
       document.editOrgForm.submit();
     };
</script>
<html:form action="/org/editorg">
<html:hidden property="id"/>
<table width="85%" border="0" cellpadding="5" cellspacing="1" bgcolor="#3399CC" class="text">
	<tr><td class=textalb colspan=2 align=center><trans:showPageMessage label="orgadd.addneweditorg" /></td></tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.orgname" />:
		</td>
		<td>
		<html:text size="60" property="name" styleClass="text"  maxlength="200" />				
<font color="red">		<html:errors property="name"/>		</font>
		<br class="text">
			<trans:showPageMessage label="orgadd.exWRI" /><!--Example:"World Resources Institute"-->.
		</br>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.orgabbrev" />:
		</td>
		<td>
		<html:text property="acronym" styleClass="text" maxlength="10"/>				
					
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.desc" />:
		</td>
		<td>
		<html:textarea property="description" cols="50" rows="4" styleClass="text_search" onkeydown="textCounter(this.form.description,this.form.c_description,4000);" onkeyup="textCounter(this.form.description,this.form.c_description,4000);"/>				
		<input readonly type="text" name="c_description" size="3" maxlength="4" value=""> <trans:showPageMessage label="charactersleft" />				
		<br class="text">
		<trans:showPageMessage label="orgadd.exwrienv" /><!--Example:"WRI is an environment and development think tank 
that goes beyond research to create practical ways to protect the 
earth and improve people's lives."--> 
		</br>

		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.address1" />:
		</td>
		<td>
		<html:textarea property="address1" cols="60" rows="3" styleClass="text" onkeydown="textCounter(this.form.address1,this.form.c_address1,500);" onkeyup="textCounter(this.form.address1,this.form.c_address1,500);"/>
	<input readonly type="text" name="c_address1" size="3" maxlength="4" value=""> <trans:showPageMessage label="charactersleft" />				
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.address2" />:
		</td>
		<td>
		<html:textarea property="address2" cols="60" rows="3" styleClass="text" onkeydown="textCounter(this.form.address2,this.form.c_address2,500);" onkeyup="textCounter(this.form.address2,this.form.c_address2,500);"/>
<input readonly type="text" name="c_address2" size="3" maxlength="4" value=""> <trans:showPageMessage label="charactersleft" />				
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.country" />:
		</td>
		<td>
		<html:select property="countryISO3">
		<html:options collection="Country_LIST" property="iso3" labelProperty="name"/>
		</html:select>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.orgtype" />:
		</td>
		<td>
		<html:select property="type">
		<html:options collection="OrgType_LIST" property="id" labelProperty="name"/>
		</html:select>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.contactname" />:
		</td>
		<td>
		<html:text property="contactName" styleClass="text" maxlength="200"/>									
		</td>
	</tr>
	
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.contacttitle" />:
		</td>
		<td>
		<html:text property="contactTitle" styleClass="text" maxlength="200"/>									
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.contactemail" />:
		</td>
		<td>
		<html:text property="contactEmail" styleClass="text" maxlength="200"/>								
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.contactphne" />:
		</td>
		<td>
		<html:text size="5" property="contactPhone1" styleClass="text" maxlength="30"/>				
		<html:text size="5" property="contactPhone2" styleClass="text" maxlength="30"/>				
		<html:text property="contactPhone3" styleClass="text" maxlength="30"/>								
		</td>
				
		
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.contactfax" />:
		</td>
		<td>		
		<html:text size="5" property="contactFax1" styleClass="text" maxlength="30"/>				
		<html:text size="5" property="contactFax2" styleClass="text" maxlength="30"/>				
		<html:text property="contactFax3" styleClass="text" maxlength="30"/>								
 		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.organizationurl"/>:
		</td>
		<td>
		<html:text property="contactURL" size="60" styleClass="text_search" maxlength="100"/>
					
		<br class="text"/>
			<trans:showPageMessage label="orgadd.exhttp" /><!--Example:"http://www.wri.org/wri"--> 
		</td>
	</tr>
	
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.orgid" /> (*):
		</td>
		<td>
		<html:text property="AIDAOrg" styleClass="text-Search" maxlength="10"/> 
					
		<logic:present name="error.aidaorg">
		<font color="red">
		<trans:showPageMessage label="orgadd.error.aidaorg" />:
		</font>
		</logic:present>
		<br>		
			<trans:showPageMessage label="orgadd.exforwb" /><!--Example:"For WorldBank : WBK"--> 
		</br>
		</td>
	</tr>
	
	
	<tr bgcolor="#FFFFFF">
		<td align=right class=text_searchbold>
		<trans:showPageMessage label="orgadd.infosource" /> :
		</td>
		<td>
			
		<html:textarea property="infoSource" cols="50" rows="2"  onkeydown="textCounter(this.form.infoSource,this.form.c_infoSource,512;" onkeyup="textCounter(this.form.infoSource,this.form.c_infoSource,512);"/> 
	<input readonly type="text" name="c_infoSource" size="3" maxlength="4" value=""> <trans:showPageMessage label="charactersleft" />				
		</td>
	</tr>
	
	
	<logic:notEqual name="editOrgForm" property="id" value="-1">
	<tr bgcolor="#FFFFFF"><td align=right class=text_searchbold>
<trans:showPageMessage label="orgadd.people" />:
	</td>
	
	<td>
	<table cellpadding="5" cellspacing="1" border="0" bgcolor="#3399CC" class="text_search">
	<logic:notEmpty name="Edited_Organization_People">
		<th bgcolor="#FFFFFF">
			<trans:showPageMessage label="orgadd.remove" />
		</th>
		<th bgcolor="#FFFFFF">
			<trans:showPageMessage label="orgadd.persname" />
		</th></tr>
		<logic:iterate name="Edited_Organization_People" id="pers">
			<tr>
			<td bgcolor="#FFFFFF">
			<html:multibox property="unlink_people_ids">
				<bean:write name="pers" property="id"/>
			</html:multibox>
			</td>
			<td bgcolor="#FFFFFF">
				<bean:write name="pers" property="name"/>
			</td>
			<tr>
		<td bgcolor="#FFFFFF" colspan=2></logic:iterate>
		<tr><td colspan="2" bgcolor="#FEFEFE">
			<html:submit styleClass="buton" property="unlink_people">
			<trans:showPageMessage label="orgadd.removeselpeople" hide_link="true" />
			</html:submit>
		</td>
		</tr>
	</logic:notEmpty>
		<tr><td colspan="2" bgcolor="#FEFEFE">
		<input class=buton type="button" value="<trans:showPageMessage label="orgadd.addapers" hide_link="title" />" 
	onclick="javascript:window.window.open('<html:rewrite page="/pers/selector.do?"/>','ed_org_pers_select_win', 'HEIGHT=400,WIDTH=500,scrollbars=yes');"/>
		</td></tr>

	</table>	
	</td>

	
	</tr>
	</logic:notEqual>
	<tr>
		<td align=center bgcolor=ffffff colspan=2>
			<html:submit styleClass="butonsave" property="confirm_save">
			  <logic:notEqual name="editOrgForm" property="id" value="-1">
			  <trans:showPageMessage label="orgadd.submitchanges" hide_link="title" />
			  </logic:notEqual>
			  <logic:equal name="editOrgForm" property="id" value="-1">
			  <trans:showPageMessage label="orgadd.addthisorg" hide_link="title" />
			  </logic:equal>
			</html:submit>
			<p>
		  <logic:notEqual name="editOrgForm" property="id" value="-1">
			<html:submit styleClass="buton" property="confirm_delete">
			  <trans:showPageMessage label="orgadd.delorgg" hide_link="title" />
		  	</html:submit>
		  </logic:notEqual>
			</p>
			
		</td>
	</tr>
</table><trans:showPageMessage label="translator.showhiddentags"/>
</html:form>

